package NGUYENTHECUONG.JAVA_FOR_BASE;

public class SAMPLE_STRUCTURE {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// sample01
		/*
		 * int a =10; if(a>0){ System.out.println("Gia tri cua a > 0"); }
		 */
		// Su dung phat bieu if esle 02
		/*int a = 4;
		if (a == 0) {
			System.out.println("Gia tri cua a = 0");
		} else if (a == 5) {
			System.out.println("Gia tri cua a =5");
		} else if (a < 0) {
			System.out.println("gia tri cua a < 0");
		} else {
			System.out.println("gia tri cua a > 0");
			*/
			// sample03 su dung while do
		/*	int a =10;
			int i =0;
			while(i<=10){
				System.out.println("Gia tri cua i la:"+i);
				i++;
		}*/
		int a =10;
		switch (a) {
		case 0: {
			System.out.println("Gia tri cua a = 0");
		}
			
			break;
		case 1 : {
			System.out.println("Gia tri cua a = 1"); 
			break;
		}

		default: {
			System.out.println(" khong sac dinh");
		}
			break;
		}
			
	}

}
